import { createRouter, createWebHistory } from "vue-router"

import ForwardingCompany from '../components/ForwardingCompany.vue'
import cargo from '../components/cargo.vue'
import portsCompany from '../components/portsCompany.vue'
import card from '../components/card.vue'
import NotFound from '../components/NotFound.vue'
import loginone from '../components/loginone.vue'
import register from '../components/register.vue'

const router = createRouter({
	routes:[{
		name:'首页',
    //  path:'/login',
		'component':() => import('../components/login.vue')
	},
	{
		name:'ForwardingCompany',
		path:'/ForwardingCompany',
		'component':() => import('../components/ForwardingCompany.vue')
	},
	{
		name:'cargo',
		path:'/cargo',
		'component':() => import('../components/cargo.vue')
	},
	{
		name:'incar',
		path:'/incar',
		'component':() => import('../components/incar.vue')
	},
	{
		name:'outcar',
		path:'/outcar',
		'component':() => import('../components/outcar.vue')
	},
	{
		name:'portsCompany',
		path:'/portsCompany',
		'component':() => import('../components/portsCompany.vue')
	},

	{
		name:'card',
		path:'/card',
		'component':() => import('../components/card.vue')
	},
	
	{
		name:'RevenueView',
		path:'/RevenueView',
		'component':() => import('../components/RevenueView.vue')
	},
  {
    path: '/:catchAll(.*)',
    name: 'NotFound',
    component:()=>import( '../components/NotFound.vue')
  },
  {
		name:'logins',
     path:'/logins',
		'component':() => import('../components/login.vue')
	},
  {
		name:'loginone',
     path:'/loginone',
		'component':() => import('../components/loginone.vue')
	},
  {
		name:'register',
     path:'/register',
		'component':() => import('../components/register.vue')
	},
],
	history: createWebHistory()
})

export default router